<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateMemberTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('member', function (Blueprint $table) {
            $table->id();
            $table->string('name',50)->comment('名称');
            $table->unsignedInteger('time')->comment('时长/天');
            $table->decimal('old_price',6,2)->comment('原价');
            $table->decimal('now_price',6,2)->comment('现价');
            $table->string('benefits_tags',30)->nullable()->comment('权益标签');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('member');
    }
}
